/**
 * 
 */
package com.chitranshu.activities;

import android.os.Bundle;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;

/**
 * @author anshu
 * 
 */
public abstract class TopTabActivity extends BaseTabActivity implements
		OnClickListener {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		LinearLayout linearLayout = new LinearLayout(this);
		linearLayout.setOrientation(LinearLayout.VERTICAL);
		LayoutParams linearLayoutParams = new LayoutParams(
				LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
		linearLayout.setLayoutParams(linearLayoutParams);

		LayoutParams tabLayoutParams = new LayoutParams(
				LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);
		tabLayout.setLayoutParams(tabLayoutParams);
		linearLayout.addView(tabLayout);

		android.widget.FrameLayout.LayoutParams contentLayoutParam = new android.widget.FrameLayout.LayoutParams(
				android.widget.FrameLayout.LayoutParams.FILL_PARENT,
				android.widget.FrameLayout.LayoutParams.FILL_PARENT);
		content.setLayoutParams(contentLayoutParam);
		linearLayout.addView(content);

		setCurrentTab(0);
		setContentView(linearLayout);

	}

}
